﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Messaging;
using Cleverscape.UTorrentClient.WebClient;

namespace uTorrentSL.ViewModel
{
    /// <summary>
    /// This class contains properties that a View can data bind to.
    /// <para>
    /// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel.
    /// </para>
    /// <para>
    /// You can also use Blend to data bind with the tool's support.
    /// </para>
    /// <para>
    /// See http://www.galasoft.ch/mvvm/getstarted
    /// </para>
    /// </summary>
    public class MyBaseViewModel : ViewModelBase
    {
        public IUTorrentData Data 
        {
            get
            {
                return ViewModelLocator.DataService;
            }
        }
        /// <summary>
        /// Initializes a new instance of the MyBaseViewModel class.
        /// </summary>
        public MyBaseViewModel()
        {
            ////if (IsInDesignMode)
            ////{
            ////    // Code runs in Blend --> create design time data.
            ////}
            ////else
            ////{
            ////    // Code runs "for real": Connect to service, etc...
            ////}
        }

        

       
    }
}